function _clickTpl(){
	var id = $(this).attr("id");
	window.location.href = i1510.contextPath+"/admin/mflowMain/createFlow.do?docId="+id;
	
}
$(function() {
	jQuery("#showMenu").first().click();
	var data2 = new Object();
	data2['pageNo'] = "1";
	data2['pageSize'] = "10";
	data2['totalCount'] = "0";
	jQuery.ajax({
	    type: "GET",
		cache: false,
		data:data2,
		url: i1510.contextPath+"/admin/mflowTpl/getFlowTplList.do",
		dataType:'json',
		success: function(value){
			var data = value.data.listData; 
			var dataStr = "";
			$.each(data, function(i, item) {
				dataStr += "<tr>";
				dataStr += "	<td style='color: #ffffff'><a href='#' class='click_tpl' id='"+item.docId+"' ><img src='edit-paste.png'/>"+item.docSubject+"</a></td>";
				dataStr += "</tr>";
				
			}); 
			$("#pageShow").html(dataStr);
			jQuery("a[class='click_tpl']").bind("click",_clickTpl);
		},		       
        error: function(jqXHR , textStatus , errorThrown){
        	alert("--error");
        }
	})
});